package com.wfuhui.modules.goods.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfuhui.modules.goods.dao.GoodsSpecsDao;
import com.wfuhui.modules.goods.entity.GoodsSpecsEntity;
import com.wfuhui.modules.goods.service.GoodsSpecsService;



@Service("goodsSpecsService")
public class GoodsSpecsServiceImpl implements GoodsSpecsService {
	@Autowired
	private GoodsSpecsDao goodsSpecsDao;
	
	@Override
	public GoodsSpecsEntity queryObject(Integer id){
		return goodsSpecsDao.queryObject(id);
	}
	
	@Override
	public List<GoodsSpecsEntity> queryList(Map<String, Object> map){
		return goodsSpecsDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return goodsSpecsDao.queryTotal(map);
	}
	
	@Override
	public void save(GoodsSpecsEntity goodsSpecs){
		goodsSpecsDao.save(goodsSpecs);
	}
	
	@Override
	public void update(GoodsSpecsEntity goodsSpecs){
		goodsSpecsDao.update(goodsSpecs);
	}
	
	@Override
	public void delete(Integer id){
		goodsSpecsDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		goodsSpecsDao.deleteBatch(ids);
	}
	
}
